package com.piggy.logi.sys.vo;

import cn.hutool.core.util.IdUtil;
import com.piggy.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 客户收发货地址管理视图对象 logi_customer_book
 *
 * @author piggy
 * @date 2023-08-16
 */
@Data
@Accessors(chain = true)
@ApiModel("客户收发货地址管理视图对象")
public class LogiCustomerBookVo {

	private static final long serialVersionUID = 1L;

	/** 主键 */
	@Excel(name = "主键")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@ApiModelProperty("主键")
	private Long id;

	/** 服务商ID */
	@Excel(name = "服务商ID")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@ApiModelProperty("服务商ID")
	private Long customerId;

	/** 联系人 */
	@Excel(name = "联系人")
	@ApiModelProperty("联系人")
	private String contactName;

	/** 手机 */
	@Excel(name = "手机")
	@ApiModelProperty("手机")
	private String phone;

	/** 序号 */
	@Excel(name = "序号")
	@ApiModelProperty("序号")
	private Integer sort;

	/** 行政区划 */
	@Excel(name = "行政区划")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@ApiModelProperty("行政区划")
	private Long bookDistrict;
	private String bookDistrictName;

	/** 详细地址 */
	@Excel(name = "详细地址")
	@ApiModelProperty("详细地址")
	private String bookAddress;

	/** 纬度 */
	@Excel(name = "纬度")
	@ApiModelProperty("纬度")
	private BigDecimal bookLat;

	/** 经度 */
	@Excel(name = "经度")
	@ApiModelProperty("经度")
	private BigDecimal bookLng;

	@ApiModelProperty("uuid")
	private String uuid = IdUtil.fastUUID().toLowerCase();

}
